import request from '@/utils/request'

// 查询肉鸡出栏列表
export function listChickenOutRegistry(query) {
  return request({
    url: '/btlfbreed/chickenOutRegistry/list',
    method: 'get',
    params: query
  })
}

// 查询肉鸡出栏详细
export function getChickenOutRegistry(id) {
  return request({
    url: '/btlfbreed/chickenOutRegistry/' + id,
    method: 'get'
  })
}

// 新增肉鸡出栏
export function addChickenOutRegistry(data) {
  return request({
    url: '/btlfbreed/chickenOutRegistry',
    method: 'post',
    data: data
  })
}

// 修改肉鸡出栏
export function updateChickenOutRegistry(data) {
  return request({
    url: '/btlfbreed/chickenOutRegistry',
    method: 'put',
    data: data
  })
}

// 删除肉鸡出栏
export function delChickenOutRegistry(id) {
  return request({
    url: '/btlfbreed/chickenOutRegistry/' + id,
    method: 'delete'
  })
}

// 初始化下拉框
export function getOptionUserselect() {
  return request({
    url: '/api/optionUserselect',
    method: 'get'
  })
}
// 初始化下拉框
export function getOptionCustomerselect() {
  return request({
    url: '/api/optionCustomerselect',
    method: 'get'
  })
}

// 初始化下拉框
export function getOptionCheckselect() {
  return request({
    url: '/api/optionCheckselect',
    method: 'get'
  })
}

